package com.prj.ufdm.cloud.ms.auth.dao;

import org.apache.ibatis.annotations.Mapper;
import com.prj.ufdm.cloud.ms.core.dao.BaseDao;
import com.prj.ufdm.cloud.ms.auth.model.SysUserRole;

/**
 * 用户角色DAO
 */
@Mapper
public interface SysUserRoleDao extends BaseDao<SysUserRole> {
	
 	/**
 	 * Desc:根据用户ID删除用户角色对应关系
 	 * @auther 胡义振
 	 * @date 2018-03-27 
 	 * @param userId 用户ID
 	 */
     public void deleteUserRoleByUserId(String userId) throws Exception;
      
   	/**
   	 * Desc:根据角色ID删除删除用户角色对应关系
   	 * @auther 胡义振
   	 * @date 2018-03-27
   	 * @param roleId 角色ID
   	 */
     public void deleteUserRoleByRoleId(String roleId) throws Exception;
        
 	/**
 	 * Desc:根据用户ID和角色ID删除
 	 * @auther 胡义振
 	 * @date 2018-03-27
 	 * @param perUserRole 用户角色对象
 	 */
     public void deleteUserRoleByUserIdAndRoleId(SysUserRole sysUserRole) throws Exception;
     
}


